// 获取列表页点击存储下来的index
let ss = sessionStorage;
let listindex = ss.getItem("index");
console.log(listindex);


$.get("details.php",{
	index:listindex
},function(resText){
	// console.log(resText);
	
	let arr = resText;
	
	
	// for(let i= 0;i<arr.length;i++){
		
	
	$("section img").attr("src",`../images/list-${arr[0]}.png`);
	
	// }

})